package org.tio.examples.httpImpl.server;

import org.tio.core.ChannelContext;
import org.tio.core.intf.Packet;
import org.tio.server.intf.ServerAioListener;

public class HttpAioListerner implements ServerAioListener{

    @Override
    public void onAfterConnected(ChannelContext channelContext, boolean isConnected, boolean isReconnect)
            throws Exception {
        System.out.println("111111111111111111111111");
    }

    @Override
    public void onAfterSent(ChannelContext channelContext, Packet packet, boolean isSentSuccess) throws Exception {
        System.out.println("222222222222222222222222");
    }

    @Override
    public void onAfterReceived(ChannelContext channelContext, Packet packet, int packetSize) throws Exception {
        System.out.println("33333333333333333333333333");
    }

    @Override
    public void onBeforeClose(ChannelContext channelContext, Throwable throwable, String remark, boolean isRemove) {
        
    }

    @Override
    public void onAfterClose(ChannelContext channelContext, Throwable throwable, String remark, boolean isRemove)
            throws Exception {
        
    }

}
